﻿<Window x:Class="Refugees.Views.Windows.ContactNumbers"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Refugees.Views.Windows"
        mc:Ignorable="d"
        Title="Контактыы" Height="550" Width="800">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF819B3D" Offset="0.229"/>
                <GradientStop Color="#FF4A9E99" Offset="0.661"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="0.2*"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <Menu Grid.Row="0" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid Rows="1"/>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <MenuItem HorizontalAlignment="Stretch" Header="Новости"  FontSize="20" FontWeight="Bold" HorizontalContentAlignment="Center" Click="NewsClick" FontFamily="Times New Roman"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Услуги"  FontSize="20" FontWeight="Bold" FontFamily="Times New Roman" Click="UsliguClick"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="" FontSize="20"  FontWeight="Bold" FontStyle="Italic"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Организации" Click="ContactsClick" FontSize="20"  FontWeight="Bold" FontFamily="Times New Roman"/>
            <MenuItem HorizontalAlignment="Stretch"  Header="Пользователь"  FontSize="20" FontWeight="Bold" FontFamily="Times New Roman" Click="UserClick" />
        </Menu>
        <Ellipse HorizontalAlignment="Center" VerticalAlignment="Top" 
         Margin="0, 20, 0, 0"
         Width="100" Height="50" Grid.RowSpan="2">
            <Ellipse.Fill>
                <ImageBrush Stretch="UniformToFill" ImageSource="/Icon/сердцепомощи.jpg"/>
            </Ellipse.Fill>
        </Ellipse>

        <Label Content="Kind Hend" 
       Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom"
           Foreground="Black"
           FontSize="36" FontStyle="Italic" 
           FontWeight="Bold" FontFamily="Perpetua Titling MT"/>
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel>
                <GroupBox Header="Выберите организациюы">
                    <ComboBox
   Name="Organiztion" DisplayMemberPath="Name"
   SelectionChanged="OrganizationSelectionChanged"/>
                </GroupBox>
                <TextBlock/>
                <Button Style="{DynamicResource Vhod}" HorizontalAlignment="Stretch" Width="Auto" 
                        Content="Новая организация" Click="NewOrganizationClick" Name="NewOrganization"/>
                <Button Style="{DynamicResource Vhod}" HorizontalAlignment="Stretch" Width="Auto" 
                        Content="Редактировать организацию" Click="EditOrganizationClick" Name="EditOrganization"/>
            </StackPanel>
            <Grid Grid.Column="1">
                <StackPanel>
                    <GroupBox Header="Имя">
                        <TextBlock Name="OrganizationName"/>
                    </GroupBox>
                    <GroupBox Header="Телефон">
                        <TextBlock Name="Phone"/>
                    </GroupBox>
                    <GroupBox Header="Адрес">
                        <TextBlock Name="Address"/>
                    </GroupBox>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</Window>